package com.wwg.cms.bo.entity;
import com.wwg.cms.bo.*;
/**
 *create auto on 2010-8-31 16:43:18
 *create by wwl
 * attention
 * 
 * @hibernate.class table="attention" *  mutable="true" 
 *  proxy="com.wwg.cms.bo.entity.AttentionEntity" 
 */
public class AttentionEntity implements Attention{

	 private Long id;
	 private Long userId;
	 private String attentionType;
	 private String attentionContent;
	/**
	 *
 	 *
	 * @hibernate.id  column="id"
	 *  unsaved-value="null"
 	 *  generator-class="native"
	 * @return Long 
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id){
		this.id = id;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="user_id"
	 * @return Long 
	 */
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId){
		this.userId = userId;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="attention_type"
	 * @return String 
	 */
	public String getAttentionType() {
		return attentionType;
	}
	public void setAttentionType(String attentionType){
		this.attentionType = attentionType;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="attention_content"
	 * @return String 
	 */
	public String getAttentionContent() {
		return attentionContent;
	}
	public void setAttentionContent(String attentionContent){
		this.attentionContent = attentionContent;
	}
  @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AttentionEntity that = (AttentionEntity) o;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? AttentionEntity.class.hashCode()+id.hashCode() : AttentionEntity.class.hashCode();
    }


}


